import Cookies from 'js-cookie'

const TokenKey = 'CRM-TOKEN'
const expires  = 365*99
const path = '/crm'     //存在crm路径
export function getToken() {  
  return Cookies.get(TokenKey,{path:path})
    //  console.log(Cookies.get(TokenKey,{path:path}))
  
}

export function setToken(token) {
  return Cookies.set(TokenKey, token,{expires:expires,path:path})
}

export function removeToken() {
  return Cookies.remove(TokenKey,{path:path})
}
